// 调用接口请求
export function request (address) {
  async function loadData () {
    return await fetch(address)
  }
  // response.json() 返回一个promise对象
  return loadData().then(response => response.json())
}